GXCountTrays
You can use theGXCountTrays
function to determine the number of paper trays that are available for your printing extension or printer driver to use.
OSErr GXCountTrays (gxTrayIndex *numTrays);
numTrays
- A pointer to a value that, on return, contains the number of paper trays that are currently available on the printer.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
TheGXCountTrays
function calls theGXFetchTaggedData
function to retrieve
the number of paper trays that are currently available on the printer. You call theGXCountTrays
function to determine how many trays there are when you need to loop through the paper trays to look for information.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. SEE ALSO
TheGXFetchTaggedData
function is described in Inside Macintosh: QuickDraw GX Environment and Utilities.You can read about managing paper trays in the section "Managing Paper Trays and Their Paper Types" beginning on page 5-5.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help